package com.pb.wkflow.api.service;

import com.pb.wkflow.api.controller.request.ProcDefFieldRequest;
import com.pb.wkflow.api.controller.request.ProcDefineCreateRequest;
import com.pb.wkflow.api.entity.WfSysProcDefFieldEntity;

/**
 * 流程定义字段配置Service
 * @author 苗益辉
 * @date 2023/4/17 16:07
 */
public interface WfSysProcDefFieldService {

    /**
     * 新增或修改流程定义字段配置
     * @param request request
     */
    void addOrUpdate(ProcDefFieldRequest request);

    /**
     * 初次新增
     * @param request request
     */
    void add(ProcDefineCreateRequest request);

    /**
     * 查询流程定义字段配置
     * @param request request
     * @return Result
     */
    WfSysProcDefFieldEntity findByKey(ProcDefFieldRequest request);
}
